# -*- coding: utf-8 -*-
# @File  : 158login.py
# @Author: zbh
# @Date  : 2025/2/18_10:22

import requests

url = "http://192.168.99.99/acp-custody/rest/login/extend/userForLogin?token=null"

payload = 'loginName=ab&password=HEX-04eea7fe393feb4ef5b3b75468ace6f618c067488e9f90dcaba2da754f5e4493f014789a457b27649c0e39eff5788a312c308db9b94a0d725acad5bc0c14dbf2dbd1e6c9b8300cbe1a3d390666eadc92d6762a8a40e3ec0d9f06577e5379e4058f3f5e1be38a1c2c640989796b61&validType=0&privateKey=ACF40088C2EE020AAFBC396C8131AC6311F57C9608BF1800E9657AF1B6F9C646'
headers = {
  'Content-Type': 'application/x-www-form-urlencoded',
  'Cookie': 'JSESSIONID=0000dHiCmreU0dKYE_Iza1LC-Yb:-1; acp_cookie_name=6E586A70529D27BE63459AB5F76E676234F943CAD98BB64870604F0D'
}

def login(a):
    response = requests.request("POST", url, headers=headers, data=payload)
    # print(response.text)
    print(response.elapsed.total_seconds().__round__(2))
    # return response.status_code
# login()
#
# print(login())










